-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Add reshardSplitShardCountSummary field to ShardSearchRequest and friends #135804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
searchShardsGroup.preFiltered(), | ||
searchShardsGroup.skipped() | ||
searchShardsGroup.skipped(), | ||
0 // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is CCS code path, will remain stubbed with a better comment.
false, | ||
false | ||
false, | ||
0 // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is CCS code path, will remain stubbed with a better comment.
false, | ||
false | ||
false, | ||
0 // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for PIT, we need a custom calculation here but it's doable.
73d23a4
to
2016bfd
Compare
Test failure is a problem fixed by #135873. |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
29e8862
to
20a7df7
Compare
A
reshardSplitShardCountSummary
is a field special to resharding functionality. The final goal is forreshardSplitShardCountSummary
to be used insideEngine#wrapDirectoryReader
viaIndexShard#acquireSearcher(Supplier)
since it is needed for resharding reader wrapper to work. This PR makes so this value is available to the immediate callers ofacquireSearcher(Supplier)
like f.e.SearchService#createOrGetReaderContext()
.Note that this PR does not change all constructors of
ShardSearchRequest
in order to keep the size down. Some usages (like ESQL) also need special logic to calculate the value before passing it toShardSearchRequest
. This will be done in the follow up. Currently a default value of 0 is used.